/********************************************************************************/
/*   The  Software  is  proprietary,  confidential,  and  valuable to Realtek   */
/*   Semiconductor  Corporation  ("Realtek").  All  rights, including but not   */
/*   limited  to  copyrights,  patents,  trademarks, trade secrets, mask work   */
/*   rights, and other similar rights and interests, are reserved to Realtek.   */
/*   Without  prior  written  consent  from  Realtek,  copying, reproduction,   */
/*   modification,  distribution,  or  otherwise  is strictly prohibited. The   */
/*   Software  shall  be  kept  strictly  in  confidence,  and  shall  not be   */
/*   disclosed to or otherwise accessed by any third party.                     */
/*   c<2003> - <2011>                                                           */
/*   The Software is provided "AS IS" without any warranty of any kind,         */
/*   express, implied, statutory or otherwise.                                  */
/********************************************************************************/

//----------------------------------------------------------------------------------------------------
// ID Code      : RL6463_Series_FRCInclude.h No.0000
// Update Note  :
//----------------------------------------------------------------------------------------------------

//****************************************************************************
// LAYER DEFINITIONS / MACROS
//****************************************************************************
#define _FRC_ACCESS_WRITE_LENGTH                        (0x40)
#define _FRC_ACCESS_READ_LENGTH                         (0x80)

//--------------------------------------------------
// Deinfe FRC setting path
//--------------------------------------------------
#define _FRC_CAP_MAIN_1                                 (_BIT0)
#define _FRC_DISP_MAIN_1                                (_BIT4)

#define _FRC_CAP_DISP_ALL                               (_FRC_CAP_MAIN_1 | _FRC_DISP_MAIN_1)

//--------------------------------------------------
// Deinfe for FRC auto 3 block toggle
//--------------------------------------------------
#define _FRC_R_1ST_BLOCK_STA_ADDR_H                     (0x00) // 0 row
#define _FRC_R_1ST_BLOCK_STA_ADDR_M                     (0x00)

//--------------------------------------------------
// Deinfe for one-frame FRC
//--------------------------------------------------
#define _LINE_MARGIN                                    (5)

#define _FRC_START_ADDRESS_M1                           (_FRC_R_1ST_BLOCK_STA_ADDR_H)

//****************************************************************************
// STRUCT / TYPE / ENUM DEFINITTIONS
//****************************************************************************

//****************************************************************************
// VARIABLE EXTERN
//****************************************************************************

//****************************************************************************
// FUNCTION EXTERN
//****************************************************************************
extern void ScalerFRCInitial(void);
extern void ScalerFRCEn(BYTE ucSettingPath, bit bEn);

#if(_FRC_SUPPORT == _ON)
extern WORD ScalerFRCSetOneFrameDVTotal(void);
extern void ScalerFRCControl(const StructSDRAMDataInfo *pstFIFOSize);
#endif

extern void ScalerFRCSetDDomainSourceSelect(EnumDDomainSourceSelect enumSourceSelect);

